from flask import Flask
from flask_cors import CORS

#初始flask
app=Flask(__name__)


if __name__ =="__main__":
    app.run(host='0.0.0.0',port=5000,debug=True)

#防止中文乱码
app.config['JSON_AS_ASCII'] = False

#跨域配置

#全局配置跨域
cors = CORS(app)

#调用实例化类
if __name__ == '__main__':
    app.run(debug=True,host='0.0.0.0',post=500)

